<script>
var s = prompt("请输入出生年份:");
var age =2020- parseInt(s)+1;
alert("年龄为:"+age);
</script>